package com.xiangqian.service;

import com.xiangqian.factory.InventoryFactory;

public class InventoryService {

    private final InventoryFactory inventoryFactory;

    public InventoryService(InventoryFactory inventoryFactory){
        this.inventoryFactory = inventoryFactory;
    }

    public void displayInventory(){
        Inventory inventory = inventoryFactory.createInventory();
        inventory.display();
    }
}
